<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/16 0016
 * Time: 20:51
 */
namespace app\admin\controller;

use think\Controller;
use think\Session;

class Base extends Controller
{
    public function __construct()
    {
        parent::__construct();
        if(!session('name')){
//            $this->error('请先登录系统',url('/login'));
            $this->redirect('/login');
        }
    }
}